package com.mtsmda.designPattern1.creational.builder;

public class WindowBuilder {

	public static MainWindow createWindow() {
		MainWindow mainWindow = new MainWindow();
		Menu menu = new Menu();
		Toolbar toolbar = new Toolbar();
		mainWindow.setMenu(menu);
		mainWindow.setToolbar(toolbar);

		return mainWindow;
	}

}